import HttpHandler from "@/handler/HttpHandler";

export default class xuTest1{
  constructor() {
    this.http=new HttpHandler();
  }
  add(data){
    const url='/tie-demo/xuTest1/add';
    return this.http.post(url,data);
  }
  getEnum(params){
    let url ="/tie-system/resource/getEnum";
    return this.http.get(url,params);
  }
  queryListPage(data){
    const url = 'tie-demo/xuTest1/queryListPage';
    return this.http.get(url,data);
  }
  // 禁用启用
  changeStatus(data) {
    let url = '/tie-mdm/customer/changeStatus';
    return this.http.get(url, data);
}
detail(data) {
  let url = '/tie-demo/xuTest1/queryDetail';
  return this.http.get(url, data);
}
//获取分组树列表
queryGroupTree(data) {
  let url = '/tie-demo/xuTest1/queryGroupTree';
  return this.http.get(url, data);
}
remove(data) {
  let url = '/tie-demo/xuTest1/remove';
  return this.http.post(url, data);
}
finById(data){
  let url = 'tie-demo/xuTest1/findById';
  return this.http.get(url,data);
}

batchChangeState(data) {
  let url = '/tie-demo/xuTest1/batchChangeState';
  return this.http.post(url, data);
}
update(data){
  let url = 'tie-demo/xuTest1/update'
  return this.http.post(url,data)
}

queryCreat(data){
  const url = 'tie-demo/xuTest1/queryCreat';
    return this.http.get(url,data);
}
queryDp(data){
  const url = 'tie-demo/xuTest1/queryDp';
    return this.http.get(url,data);
}
}
